package com.dyna.foundation.domain.resp;

import com.dyna.constants.DateFatter;
import com.dyna.enums.SexEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author zhoucaiwang
 * @date 2023/8/14
 */

@Data
@ApiModel(value = "展示用户信息")
public class SysUserResp {

    @ApiModelProperty(value = "用户uuid")
    private Long userId;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "用户姓名")
    private String nickName;

    @ApiModelProperty(value = "部门名称", example = "IT 部")
    private String deptName;

    /**
     *  性别
     * {@link SexEnum}
     */
    @ApiModelProperty(value = "性别", notes = "0：男，1女，2未知")
    private Integer sex;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = DateFatter.YYYY_MM_DD_HH_MM_SS)
    private LocalDateTime createTime;

}
